<%@ Register TagPrefix="cc1" Namespace="FunkeLab" Assembly="FunkeLabTreeView" %>
<%@ Register TagPrefix="cc2" Namespace="Pluspetrol.Core.UIControls.WebControls" Assembly="Pluspetrol.Core.UIControls" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ArbolCalificaciones.ascx.cs" Inherits="ConcursoCV.UI.WebUserControls.Concurso.ArbolCalificaciones" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table id="Table2" style="BORDER-RIGHT: #035ac4 1px solid; BORDER-TOP: #035ac4 1px solid; BORDER-LEFT: #035ac4 1px solid; BORDER-BOTTOM: #035ac4 1px solid"
	height="100%" cellSpacing="-1" cellPadding="-1" width="100%">
	<tr>
		<td class="titulo_2" colSpan="4">Curriculum Vitae del Docente
		</td>
	</tr>
	<tr>
		<td>
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td vAlign="top" align="center">
						<table id="Table3" cellSpacing="0" cellPadding="0" width="95%">
							<tr>
								<td vAlign="top">
									<div id="div1" style="BORDER-RIGHT: #035ac4 1px solid; BORDER-TOP: #035ac4 1px solid; OVERFLOW: auto; BORDER-LEFT: #035ac4 1px solid; WIDTH: 100%; BORDER-BOTTOM: #035ac4 1px solid; HEIGHT: 250px; BACKGROUND-COLOR: white"
										onscroll="setScrollPos();"><cc1:mytreeview id="treeView" ItemsStyle="treeView" runat="server" CssClass="treeView">
											<cc1:MyTreeViewItem Text="Curriculum Vitae" LoadOnExpand="False" Value="ROOT" Selected="False" Open="True"
												Selector="None"></cc1:MyTreeViewItem>
										</cc1:mytreeview></div>
								</td>
							</tr>
							<tr>
								<td class="espacio">&nbsp;</td>
							</tr>
							<tr>
								<td align="left" colSpan="2"><asp:label id="lblError" runat="server" CssClass="ErrorMessage" ForeColor="Red"></asp:label></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td vAlign="top" align="center">
						<table id="Table5" cellSpacing="0" cellPadding="0" width="95%">
							<tr>
								<td width="78%">&nbsp;</td>
								<td width="10%"></td>
								<td width="2%">&nbsp;</td>
								<td width="10%"></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<script language="javascript">
     ///This function sets the scroll position of div to cookie.
    function setScrollPos()
    {
        var divY = document.getElementById('div1').scrollTop;
        document.cookie = "divPos=!*" + divY + "*!";
    }
    ///Attaching a function on window.onload event.
    window.onload = function()
    {
        var strCook = document.cookie;
        if(strCook.indexOf("!~")!=0)
        {
            var intS = strCook.indexOf("!~");
            var intE = strCook.indexOf("~!");
            var strPos = strCook.substring(intS+2,intE);
            document.body.scrollTop = strPos;
        }
        /// This condition will set scroll position od <div>.
        if(strCook.indexOf("!*")!=0)
        {
            var intdS = strCook.indexOf("!*");
            var intdE = strCook.indexOf("*!");
            var strdPos = strCook.substring(intdS+2,intdE);
            document.getElementById('div1').scrollTop = strdPos;
        }
    }
    /// Function to set Scroll position of page before postback.
    function SetScrollPosition()
    {
        var intY = document.body.scrollTop;
        document.cookie = "yPos=!~" + intY + "~!";
    }
    /// Attaching   SetScrollPosition() function to window.onscroll event.
    window.onscroll = SetScrollPosition;
</script>
